export const login = (credentials) => {
  // TODO: 对接实际认证API
  return Promise.resolve({
    token: 'mock_token',
    userInfo: {
      id: 1,
      restaurantId: 1001,
      permissions: ['MENU_MGMT', 'ORDER_VIEW']
    }
  })
}

export const logout = () => {
  localStorage.removeItem('auth_token')
}

export const getAuthHeader = () => {
  return {
    Authorization: `Bearer ${localStorage.getItem('auth_token')}`
  }
}